package com.sgb.kjwl.view.event;

import android.text.TextUtils;

import com.stx.xhb.androidx.entity.BaseBannerInfo;

public class CustomViewsInfo implements BaseBannerInfo {

    private String stringfo;

    private int intfo;

    public CustomViewsInfo(int intfo) {
        this.intfo = intfo;
    }

    public CustomViewsInfo(String stringfo) {
        this.stringfo = stringfo;
    }

    @Override
    public Object getXBannerUrl() {
        if (TextUtils.isEmpty(stringfo)){
            return intfo;
        }
        return stringfo;
    }

    @Override
    public String getXBannerTitle() {
        return "";
    }
}
